// ==================================================================================================
// Copyright(C) 2018 FI Ltd. All rights reserved.
//
// SYSTEM NAME	   : FI.Net Application Framework
// COMPONENT ID	   : FI.Helpers.Data.CommandListCreatedEventArgs
// COMPONENT DESC  :		
//
// CREATED DATE/BY :	18 Aug 2018 / Tian Mi
//
// REVISION HISTORY:	DATE/BY			SR#/CS/PM#/OTHERS		DESCRIPTION OF CHANGE
// ==================================================================================================

using System;
using System.Diagnostics.CodeAnalysis;

namespace FI.Helpers.Data
{
    /// <summary>
    /// CommandListCreatedEventArgs
    /// </summary>
    public sealed class CommandListCreatedEventArgs : EventArgs
    {
        private readonly CommandList commandList;

        /// <summary>
        /// Initializes a new instance of the <see cref="CommandListCreatedEventArgs"/> class.
        /// </summary>
        /// <param name="commandList">The <see cref="CommandList"/>.</param>
        public CommandListCreatedEventArgs(CommandList commandList)
        {
            this.commandList = commandList;
        }

        /// <summary>
        /// Retrieve the created commandList instance
        /// </summary>
        public CommandList CommandList
        {
            get
            {
                return commandList;
            }
        }
    }
}